package com.jadobo.xswing.spring;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class ApplicationContextProvider implements ApplicationContextAware {
	
	private static ApplicationContext applicationContext;

	@Override
	public void setApplicationContext(ApplicationContext context)
			throws BeansException {
		
		applicationContext = context;

	}
	
	public static ApplicationContext getApplicationContext() {
		return applicationContext;
	}
	
	

}
